package org.springblade.modules.repair.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.core.mp.support.Query;
import org.springblade.modules.repair.entity.BusinessApprove;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.modules.repair.vo.BusinessApprovePageVO;

import java.util.HashMap;
import java.util.Map;

public interface BusinessApproveService extends BaseService<BusinessApprove> {


	IPage<BusinessApprovePageVO> selectPage(BusinessApprove businessApprove, IPage<BusinessApprovePageVO> page);

    HashMap<String,Object> getApproveBuildingDetail(Long businessApproveId);

    HashMap<String,Integer> getUserApproveCount(Long userId);

	/**
	 * 报障审批分页
	 * @param param
	 * @param page
	 * @return
	 */
	IPage<Map<String, Object>> malfunctionPage(Map<String, Object> param, IPage<Map<String, Object>> page);

	/**
	 * 根据工单id查询审批流程
	 * @param workOrderId
	 * @return
	 */
    BusinessApprove getByWorkOrderId(Long workOrderId);
}

